import * as React from 'react';
import {observer} from 'mobx-react';
import {MySpin} from '../../../component/spin/Spin';
import {AddFormModal} from './add/Add';
import {EditFormModal} from './edit/Edit';
import {ListTable} from './list/List';
import {PositionListSearchBar} from './searchBar/SearchBar';
import {addStore,listStore} from './PositionStore';

@observer
export class PositionList extends React.Component<any,any> {

    render() {
        return (
            <div>
                <MySpin SpiLoading = {listStore._SpiLoading}/>
                <PositionListSearchBar/>
                <ListTable/>
                <EditFormModal/>
                <AddFormModal/>
            </div>
        )
    }
}